package z.explorer.ui.component.marker;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.util.*;
import javax.swing.*;


import z.explorer.log.ZAppender;
import z.explorer.ui.common.ZTabbedPane;

public class ZMarker extends ZTabbedPane {

	private static final long serialVersionUID = 6002596679429653558L;
	private String name="Marker";
	private ZTextArea markArea = new ZTextArea();

	public ZMarker() {
		
	
		JScrollPane sp = new JScrollPane(markArea,
				JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
				JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		JPanel panel = new JPanel();
		panel.setLayout(new BorderLayout());
		panel.add(sp,BorderLayout.CENTER);
		addPanel("log", panel);
		ZAppender.getAppender().setTextArea(markArea);
	}

	public ZTextArea getMarkArea() {
		return markArea;
	}

	public void setMarkArea(ZTextArea markArea) {
		this.markArea = markArea;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return name;
	}
	
}
